package com.jwsoft.manager.core.dao.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 金华市报名专库同步情况表
 *
 * @author zhiyuan
 * @since 2024-04-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("edu_sync_jh_apply")
@Schema(name = "EduSyncJhApply", title = "金华市报名专库同步情况表", description = "金华市报名专库同步情况表实体类")
public class EduSyncJhApply extends Model<EduSyncJhApply> {

    private static final long serialVersionUID = 1L;

    @Schema(name = "jhApplyId", description = "金华市报名专库id")
    @TableId(value = "jh_apply_id", type = IdType.ASSIGN_ID)
    private Long jhApplyId;

    @Schema(name = "importBatchId", description = "导入批次id")
    @TableField(value = "import_batch_id")
    private Long importBatchId;

    @Schema(name = "year", description = "年份")
    @TableField(value = "year")
    private Integer year;

    @Schema(name = "schoolCategory", description = "学段：1:幼儿园 2：小学 3：初中")
    @TableField(value = "school_category")
    private String schoolCategory;

    @Schema(name = "cardType", description = "证件类型：01：身份证 02：护照03：台胞证04：台湾居民来往大陆通行证 05：港澳居民往来内地通行证 06:外国人永久居留身份证  99：其他证件")
    @TableField(value = "card_type")
    private String cardType;

    @Schema(name = "name", description = "姓名")
    @TableField(value = "name")
    private String name;

    @Schema(name = "idcard", description = "证件号码")
    @TableField(value = "idcard")
    private String idcard;

    @Schema(name = "sex", description = "性别 0男 1 女")
    @TableField(value = "sex")
    private String sex;

    @Schema(name = "nation", description = "民族")
    @TableField(value = "nation")
    private String nation;

    @Schema(name = "householdAddress", description = "户籍地址")
    @TableField(value = "household_address")
    private String householdAddress;

    @Schema(name = "householdType", description = "户口类型：1：居民2：农业3：渔民4：其他")
    @TableField(value = "household_type")
    private String householdType;

    @Schema(name = "residentialAddress", description = "现居住地址")
    @TableField(value = "residential_address")
    private String residentialAddress;

    @Schema(name = "masterGuardianName", description = "监护人1 姓名")
    @TableField(value = "master_guardian_name")
    private String masterGuardianName;

    @Schema(name = "masterGuardianNumber", description = "监护人1 证件号码")
    @TableField(value = "master_guardian_number")
    private String masterGuardianNumber;

    @Schema(name = "masterGuardianRelation", description = "监护人1 与学生关系：1父亲 2：母亲 3：祖父母或外祖父母 4：其它")
    @TableField(value = "master_guardian_relation")
    private String masterGuardianRelation;

    @Schema(name = "slaveGuardianName", description = "监护人2 姓名")
    @TableField(value = "slave_guardian_name")
    private String slaveGuardianName;

    @Schema(name = "slaveGuardianNumber", description = "监护人2 证件号码")
    @TableField(value = "slave_guardian_number")
    private String slaveGuardianNumber;

    @Schema(name = "slaveGuardianRelation", description = "监护人2 与学生关系1：父亲 2：母亲 3：祖父母或外祖父母 4：其它")
    @TableField(value = "slave_guardian_relation")
    private String slaveGuardianRelation;

    @Schema(name = "applyCountyCode", description = "报名所在区县码")
    @TableField(value = "apply_county_code")
    private String applyCountyCode;

    @Schema(name = "applyCountyName", description = "报名所在区县名")
    @TableField(value = "apply_county_name")
    private String applyCountyName;

    @Schema(name = "applyTime", description = "报名时间时间戳 1676616082280")
    @TableField(value = "apply_time")
    private Long applyTime;

    @Schema(name = "del", description = "0,未删除,1,已删除")
    @TableField(value = "del", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    @TableLogic
    private String del;

    @Schema(name = "createName", description = "创建人")
    @TableField(value = "create_name", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private String createName;

    @Schema(name = "createTime", description = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private Date createTime;

    @Schema(name = "updateName", description = "修改人")
    @TableField(value = "update_name", fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL)
    private String updateName;

    @Schema(name = "updateTime", description = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL)
    private Date updateTime;

    @Schema(name = "del_uk", title = "逻辑删除ID")
    @TableField(value = "del_uk", updateStrategy = FieldStrategy.NOT_NULL)
    private String delUk;
    @Override
    public Serializable pkVal() {
        return this.jhApplyId;
    }
}
